import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import router from './router'
import store from './store'

Vue.use(ElementUI);
Vue.config.productionTip = false

//defineProperties响应式原理函数，可以给某个实例挂载属性
Object.defineProperties(Vue.prototype, {
  $breadcrumbs: {
    get: () => {
      return store.getters.navbar.breadcrumbs;
    },
    set: (value) => {
      store.dispatch("changeBreadCrumbs", value);
    },
  },
});

import "./style.scss"
// import "./theme.scss"
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
